package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_hb
 */
@TableName(value ="t_hb")
@Data
public class THb implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer hbId;

    /**
     * 红包主题
     */
    private String hbZt;

    /**
     * 红包金额
     */
    private Integer hbPrice;

    /**
     * 发送时间
     */
    private Date hbTime;

    /**
     * 红包个数
     */
    private Integer hbInt;

    /**
     * 红包剩余个数
     */
    private String hbSyint;

    /**
     * 红包已领取个数
     */
    private String hbYj;

    /**
     * 持续时长
     */
    private String hbCxtime;

    /**
     * 红包状态
     */
    private String hbSta;

    /**
     * 红包是否抢到
     */
    private String hbQd;

    private Integer hbDq;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        THb other = (THb) that;
        return (this.getHbId() == null ? other.getHbId() == null : this.getHbId().equals(other.getHbId()))
            && (this.getHbZt() == null ? other.getHbZt() == null : this.getHbZt().equals(other.getHbZt()))
            && (this.getHbPrice() == null ? other.getHbPrice() == null : this.getHbPrice().equals(other.getHbPrice()))
            && (this.getHbTime() == null ? other.getHbTime() == null : this.getHbTime().equals(other.getHbTime()))
            && (this.getHbInt() == null ? other.getHbInt() == null : this.getHbInt().equals(other.getHbInt()))
            && (this.getHbSyint() == null ? other.getHbSyint() == null : this.getHbSyint().equals(other.getHbSyint()))
            && (this.getHbYj() == null ? other.getHbYj() == null : this.getHbYj().equals(other.getHbYj()))
            && (this.getHbCxtime() == null ? other.getHbCxtime() == null : this.getHbCxtime().equals(other.getHbCxtime()))
            && (this.getHbSta() == null ? other.getHbSta() == null : this.getHbSta().equals(other.getHbSta()))
            && (this.getHbQd() == null ? other.getHbQd() == null : this.getHbQd().equals(other.getHbQd()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHbId() == null) ? 0 : getHbId().hashCode());
        result = prime * result + ((getHbZt() == null) ? 0 : getHbZt().hashCode());
        result = prime * result + ((getHbPrice() == null) ? 0 : getHbPrice().hashCode());
        result = prime * result + ((getHbTime() == null) ? 0 : getHbTime().hashCode());
        result = prime * result + ((getHbInt() == null) ? 0 : getHbInt().hashCode());
        result = prime * result + ((getHbSyint() == null) ? 0 : getHbSyint().hashCode());
        result = prime * result + ((getHbYj() == null) ? 0 : getHbYj().hashCode());
        result = prime * result + ((getHbCxtime() == null) ? 0 : getHbCxtime().hashCode());
        result = prime * result + ((getHbSta() == null) ? 0 : getHbSta().hashCode());
        result = prime * result + ((getHbQd() == null) ? 0 : getHbQd().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hbId=").append(hbId);
        sb.append(", hbZt=").append(hbZt);
        sb.append(", hbPrice=").append(hbPrice);
        sb.append(", hbTime=").append(hbTime);
        sb.append(", hbInt=").append(hbInt);
        sb.append(", hbSyint=").append(hbSyint);
        sb.append(", hbYj=").append(hbYj);
        sb.append(", hbCxtime=").append(hbCxtime);
        sb.append(", hbSta=").append(hbSta);
        sb.append(", hbQd=").append(hbQd);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}